package com.cx.decorator;

import com.cx.HandleInterceptor;

/**
 * @Author:cxy
 * @Date:2022/4/10 11:15
 */
public class MyDecorator extends SsoDecorator{


    public MyDecorator(HandleInterceptor handleInterceptor) {
        super(handleInterceptor);
    }

    public MyDecorator() {
    }

    @Override
    public boolean preHandle(String request, String respone, Object handler) {
        if(super.preHandle(request, respone, handler)){
            return false;
        }

        System.out.println("MyDecorator request = " + request + ", respone = " + respone + ", handler = " + handler);
        return request.equalsIgnoreCase("111");

    }
}
